# meta team combat abilities
meta_combat_menu:
.asciiz "\nWhat would you like to do?\n1. Kittystorm \n2. Puppystorm\n3. Bunnystorm\n4. Summon the Cassi"
meta_attackone:
.asciiz "\nA Kittystorm descends upon the area, hurting both you and the enemy."
meta_attacktwo:
.asciiz "\nA furious Puppystorm engulfs the enemy, causing heavy damage."	
meta_attackthree:
.asciiz "\nA benevolent Bunnystorm moves in, its healing rains replenishing your vitality."	
meta_attackfour:
.asciiz "\nYour team leader assaults your eardrums, you take moderate damage."

meta_hitchance_one:
.word 0x00000001
meta_basedamage_one:
.word 0x00000001
meta_hitchance_two:
.word 0x00000001
meta_basedamage_two:
.word 0x00000001
meta_basehealing_three:
.word 0x00000001
meta_hitchance_four:
.word 0x00000001
meta_basedamage_four:
.word 0x00000001

meta_combat_select:
	li $a0, meta_combat_menu
	jal libplp_uart_write_string
	nop
	jal libplp_uart_read
	nop
	move $t0, $v0
	li $t1, 0x00000031
	beq $t0, $t1, meta_attack_one
	nop
	li $t1, 0x00000032
	beq $t0, $t1, meta_attack_two
	nop
	li $t1, 0x00000033
	beq $t0, $t1, meta_attack_three
	nop
	li $t1, 0x00000034
	beq $t0, $t1, meta_attack_four
	nop
	# idiot didnt enter 1-4, do it again
	j meta_combat_select
	nop
meta_attack_one:
	li $a0, meta_attackone
	jal libplp_uart_write_string
	nop
	# load specific attack values
	li $t4, meta_hitchance_one
	lw $s4, 0($t4)
	li $t4, meta_basedamage_one
	lw $s3, 0($t4)
	j player_damage_all
	nop
meta_attack_two:
	li $a0, meta_attacktwo
	jal libplp_uart_write_string
	nop
	# load specific attack values
	li $t4, meta_hitchance_two
	lw $s4, 0($t4)
	li $t4, meta_basedamage_two
	lw $s3, 0($t4)
	j player_hit
	nop
meta_attack_three:
	li $a0, meta_attackthree
	jal libplp_uart_write_string
	nop
	# base healing power
	li $t4, meta_basehealing_three
	lw $s3, 0($t4)
	j player_heal
	nop
meta_attack_four:
	li $a0, meta_attackfour
	jal libplp_uart_write_string
	nop
	# load specific attack values
	li $t4, meta_hitchance_four
	lw $s4, 0($t4)
	li $t4, meta_basedamage_four
	lw $s3, 0($t4)
	j player_damage_self
	nop